package com.nbot.server.mapper.third;

import com.nbot.server.domain.SRPResultWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 因为每天生成一个表，所以需要传表名参数
 */
public interface SRPResultMapper {

    public static final String TABLE_PRE_STR = "SRPResultD";
//    int deleteByPrimaryKey(SRPResultKey key);

//    int insert(SRPResultWithBLOBs record);

//    int insertSelective(SRPResultWithBLOBs record);

    //SRPResultWithBLOBs selectByPrimaryKey(SRPResultKey key);


//    int updateByPrimaryKeySelective(SRPResultWithBLOBs record);

//    int updateByPrimaryKeyWithBLOBs(SRPResultWithBLOBs record);

//    int updateByPrimaryKey(SRPResult record);

    /**
     * @param tableName
     * @return
     */
    List<SRPResultWithBLOBs> listAll(@Param("tableName") String tableName);

    /**
     * @param tableName
     * @return
     */
    int getCount(@Param("tableName") String tableName);


    List<SRPResultWithBLOBs>selectByWellName(@Param("tableName") String tableName,@Param("wellName")String wellName);
}